import axiosServer from "@/utils/request";
// banner
export const requestNewproBanner = () => {
  return axiosServer({
    method: 'get',
    url: '/api/shop/banner',
  })
}
// 分类接口，共9类
export const requestNewproTable = () => {
  return axiosServer({
    method: 'get',
    url: '/api/shop/category/list',
  })
}
// 分类id查找分类商品
export const requestNewproTableCategory = (categoryId) => {
  return axiosServer({
    method: 'get',
    url: '/api/shop/list/category',
    params:{
      categoryId,
    }
  })
}
//一个id查找一个商品
export const requestNewproOne = (id) => {
  return axiosServer({
    method: 'get',
    url: '/api/shop/find',
    params:{
      id,
    }
  })
}
